/*
 * 此配置类已被废弃，因为它与ApplicationConfig.java中定义的objectMapper Bean冲突
 * 请使用ApplicationConfig.java中的objectMapper Bean
 */
 
package com.example.shuiyin.config;

import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

// 此配置类已被禁用，避免Bean冲突
// @Configuration 
public class BeanConfig {

    // 此Bean定义与ApplicationConfig中的冲突
    // @Bean
    public ObjectMapper objectMapper() {
        ObjectMapper objectMapper = new ObjectMapper();
        objectMapper.registerModule(new JavaTimeModule());
        return objectMapper;
    }
} 